home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1279 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  477 b   |  21 lines

  1. on(release){
  2.    if(_root.magRune >= 20 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 20;
  5.       this.timey.timer = 0;
  6.       this.timey.timeIt = 0.17 + _root.spe * 0.01;
  7.       if(this.timey.timeIt > 1)
  8.       {
  9.          this.timey.timeIt = 1;
  10.       }
  11.       this.timey._visible = true;
  12.       _root.sheildy._visible = true;
  13.       _root.sheildUp = true;
  14.       _root.sheildy.timeIt = 320;
  15.    }
  16.    else
  17.    {
  18.       _root.messy = "Not enough Runes";
  19.    }
  20. }
  21.